JS中substring与substr的区别 Substring: 该方法可以有一个参数也可以有两个参数。 (1) 一个参数: 示例: var str=“Olive”; str.substring(3); ...